package com.indexingsystem.boss.admin.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.indexingsystem.boss.Vo.ArticlesTableVo;
import com.indexingsystem.boss.Vo.ArticlesVo;
import com.indexingsystem.boss.entity.Articles;

public interface ArticlesMapper {
	int deleteByPrimaryKey(String resId);

	int deleteArticlesByIdBatch(@Param("list") List<String> list);

	int insert(Articles record);

	int insertSelective(Articles record);

	Articles selectByPrimaryKey(String resId);

	List<ArticlesTableVo> selectArticlesList(ArticlesVo record);

	List<ArticlesVo> searchArticlesList(ArticlesVo record);

	Integer getArticlesListCount(ArticlesVo record);

	int updateByPrimaryKeySelective(Articles record);

	int updateByPrimaryKey(Articles record);
	
	/**
	 * 通过报刊刊期获取关联文章列表
	 * @param source
	 * @return
	 */
	List<Articles> getArticlesListBySource(@Param("source") String source);
}